<template>
  <div>
    <div class="title">
      <span class="title-span">周末去哪儿</span>
    </div>
    <div class="weekend" v-for="item in weekendList" :key="item.id">
      <div class="weekend-img">
        <img class="weekend-img-content" :src="item.imgUrl" alt="">
      </div>
      <div class="weekend-content">
        <div class="weekend-content_title">{{item.contentTitle}}</div>
        <div>
          <div class="weekend-content_info">{{item.contentInfo}}</div>
        </div>
      </div>
    </div>      
  </div>
</template>

<script>
export default {
  name:"HomeWeekend",
  props:{
    weekendList:Array
  }
}
</script>

<style lang="stylus" scoped>
@import ('~styles/mixins.styl');

.title {
  text-align: left;
  padding-left: 0.15rem;
  background-color: #EDEDED;

  .title-span {
    height: 0.8rem;
    line-height: 0.8rem;
    border-bottom: 0.01rem solid #EDEDED;
    font-size: 0.33rem;
    margin-left: 0.08rem;
  }
}

.weekend {
  margin-bottom: 0.07rem;

  .weekend-img {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-bottom: 38%;

    .weekend-img-content {
      width: 100%;
    }
  }

  .weekend-content {
    padding-left: 0.2rem;
    padding-bottom: 0.1rem;

    div {
      margin-top: 0.18rem;
      height: 0.3rem;
      line-height: 0.3rem;
      text-align: left;
    }

    .weekend-content_title {
      color: #212121;
      font-size: 0.28rem;
      ellipsis();
    }

    .weekend-content_info {
      color: gray;
      font-size: 0.22rem;
      ellipsis();
    }
  }
}
</style>


